package com.example.springboot_shiro.service.impl;

import com.example.springboot_shiro.domain.tttt.Reserve;
import com.example.springboot_shiro.domain.tttt.ReserveExample;
import com.example.springboot_shiro.mapper.test.ReserveMapper;
import com.example.springboot_shiro.service.ReserveService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: lqy
 * @date: 2021/9/10 14:46
 * @description:
 */
@Service
@AllArgsConstructor
public class ReserveServiceImpl implements ReserveService {
    private final ReserveMapper reserveMapper;

    @Override
    public List<Reserve> findAll() {
        ReserveExample reserveExample = new ReserveExample();
        reserveExample.createCriteria().andReserveDeleteFlagEqualTo("0");
        return reserveMapper.selectByExample(reserveExample);
    }
}
